//
//  main.m
//  homework第三部分
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Flower.h"
#import "Tree.h"
#import "Grass.h"
#import "Fungus.h"
#import "Crops.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
#if 0
        //第十一个类 花类
        Flower *flo1 = [[Flower alloc] init];
        [flo1 setName:@"水仙花"];
        [flo1 setType:@"花类"];
        [flo1 setSize:20];
        [flo1 myPrint];
        
        Flower *flo2 = [[Flower alloc] initWithName:@"牵牛花" withType:@"花类" withSize:30];
        [flo2 myPrint];
#endif
        
#if 0
        //第十二个类 树类
        Tree *tr1 = [[Tree alloc] init];
        [tr1 setName:@"红杉"];
        [tr1 setArea:@"云南"];
        [tr1 setHeight:10];
        [tr1 myPrint];
        
        Tree *tr2 = [[Tree alloc] initWithName:@"松树" withArea:@"高海拔区" withHeight:5];
        [tr2 myPrint];
        
#endif
        
#if 0
        //第十三个类 草类
        Grass *gr1 = [[Grass alloc] init];
        [gr1 setName:@"车前草"];
        [gr1 setArea:@"亚洲"];
        [gr1 setLife:1];
        [gr1 myPrint];
        
        Grass *gr2 = [[Grass alloc] initWithName:@"狗尾草" withArea:@"亚洲" withLife:1];
        [gr2 myPrint];
#endif
        
#if 0
        //第十四个类 菌类
        Fungus *fu1 = [[Fungus alloc] init];
        [fu1 setName:@"白头菇"];
        [fu1 setArea:@"美洲"];
        [fu1 setLife:20];
        [fu1 myPrint];
        
        Fungus *fu2 = [[Fungus alloc] initWithName:@"金针菇" withArea:@"see you tomorrow" withLife:10];
        [fu2 myPrint];
        
#endif
        
#if 1
        //第十五个类 庄稼
        Crops *cro1 = [[Crops alloc] init];
        [cro1 setName:@"小麦"];
        [cro1 setArea:@"亚洲等"];
        [cro1 setLife:120];
        [cro1 myPrint];
        
        Crops *cro2 = [[Crops alloc] initWithName:@"水稻" withArea:@"亚洲,中美洲等" withLife:120];
        [cro2 myPrint];
        
#endif
    
    }
    return 0;
}
